package com.xbongbong.saas.enums;

import com.xbongbong.pro.enums.permission.enums.ProPermissionAliasEnum;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * 列表页头部按钮
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/24 19:42
 * @since v1.0
 */
@Getter
public enum ListTopButtonEnum {
    // 列表页头部按钮
    CUSTOMER_ADD(XbbRefTypeEnum.CUSTOMER.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),
    CUSTOMER_IMPORT(XbbRefTypeEnum.CUSTOMER.getCode(),SaasButtonEnum.CUSTOMER_IMPORT, ProPermissionAliasEnum.CUSTOMER_IMPORT.getAlias()),
    CUSTOMER_EXPORT(XbbRefTypeEnum.CUSTOMER.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),
    CUSTOMER_CHECK_REPEAT(XbbRefTypeEnum.CUSTOMER.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CUSTOMER_DUPLICATE.getAlias()),

    CUSTOMER_FOCUS_ADD(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),
    CUSTOMER_FOCUS_IMPORT(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CUSTOMER_IMPORT.getAlias()),
    CUSTOMER_FOCUS_EXPORT(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),
    CUSTOMER_FOCUS_CHECK_REPEAT(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CUSTOMER_DUPLICATE.getAlias()),

    CUSTOMER_DEAL_ADD(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),
    CUSTOMER_DEAL_IMPORT(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CUSTOMER_IMPORT.getAlias()),
    CUSTOMER_DEAL_EXPORT(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),
    CUSTOMER_DEAL_CHECK_REPEAT(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CUSTOMER_DUPLICATE.getAlias()),

    CUSTOMER_FOLLOW_ADD(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),
    CUSTOMER_FOLLOW_IMPORT(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CUSTOMER_IMPORT.getAlias()),
    CUSTOMER_FOLLOW_EXPORT(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),
    CUSTOMER_FOLLOW_CHECK_REPEAT(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CUSTOMER_DUPLICATE.getAlias()),

    CUSTOMER_PUBLIC_ADD(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),
    CUSTOMER_PUBLIC_IMPORT(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CUSTOMER_IMPORT.getAlias()),
    CUSTOMER_PUBLIC_EXPORT(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),
    CUSTOMER_PUBLIC_CHECK_REPEAT(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CUSTOMER_DUPLICATE.getAlias()),

    CUSTOMER_RECYCLE_EXPORT(XbbRefTypeEnum.CUSTOMER_RECYCLE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),

    CUSTOMER_NEARBY_ADD(XbbRefTypeEnum.CUSTOMER_NEARBY.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),
    CUSTOMER_NEARBY_EXPORT(XbbRefTypeEnum.CUSTOMER_NEARBY.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),

    CUSTOMER_DUPLICATE_ADD(XbbRefTypeEnum.CUSTOMER_DUPLICATE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_ADD.getAlias()),

    CONTACT_ADD(XbbRefTypeEnum.CONTACT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CONTACT_ADD.getAlias()),
    CONTACT_IMPORT(XbbRefTypeEnum.CONTACT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CUSTOMER_IMPORT.getAlias()),
    CONTACT_EXPORT(XbbRefTypeEnum.CONTACT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_EXPORT.getAlias()),

    CONTRACT_ADD(XbbRefTypeEnum.CONTRACT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CONTRACT_ADD.getAlias()),
    CONTRACT_IMPORT(XbbRefTypeEnum.CONTRACT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CONTRACT_IMPORT.getAlias()),
    CONTRACT_EXPORT(XbbRefTypeEnum.CONTRACT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CONTRACT_EXPORT.getAlias()),
    CONTACT_CHECK_REPEAT(XbbRefTypeEnum.CONTACT.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CONTACT_DUPLICATE.getAlias()),

    OPPORTUNITY_ADD(XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.OPPORTUNITY_ADD.getAlias()),
    OPPORTUNITY_IMPORT(XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.OPPORTUNITY_IMPORT.getAlias()),
    OPPORTUNITY_EXPORT(XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.OPPORTUNITY_EXPORT.getAlias()),

    ALL_OPPORTUNITY_ADD(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.OPPORTUNITY_ADD.getAlias()),
    ALL_OPPORTUNITY_IMPORT(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.OPPORTUNITY_IMPORT.getAlias()),
    ALL_OPPORTUNITY_EXPORT(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.OPPORTUNITY_EXPORT.getAlias()),
    ALL_OPPORTUNITY_CHECK_REPEAT(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.OPPORTUNITY_DUPLICATE.getAlias()),

    KEY_OPPORTUNITY_ADD(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.OPPORTUNITY_ADD.getAlias()),
    KEY_OPPORTUNITY_IMPORT(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.OPPORTUNITY_IMPORT.getAlias()),
    KEY_OPPORTUNITY_EXPORT(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.OPPORTUNITY_EXPORT.getAlias()),
    KEY_OPPORTUNITY_CHECK_REPEAT(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.OPPORTUNITY_DUPLICATE.getAlias()),

    COMMUNICATE_ADD(XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CUSTOMER_COMMUNICATE_ADD.getAlias()),
    COMMUNICATE_IMPORT(XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CUSTOMER_COMMUNICATE_IMPORT.getAlias()),
    COMMUNICATE_EXPORT(XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CUSTOMER_COMMUNICATE_EXPORT.getAlias()),

    COMMUNICATE_PLAN_ADD(XbbRefTypeEnum.COMMUNICATE_PLAN.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.COMMUNICATE_PLAN_ADD.getAlias()),
    COMMUNICATE_PLAN_EXPORT(XbbRefTypeEnum.COMMUNICATE_PLAN.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.COMMUNICATE_PLAN_EXPORT.getAlias()),

    WORK_REPORT_ADD(XbbRefTypeEnum.WORK_REPORT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.WORK_REPORT_ADD.getAlias()),
    WORK_REPORT_EXPORT(XbbRefTypeEnum.WORK_REPORT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.WORK_REPORT_EXPORT.getAlias()),
    WORK_REPORT_STATISTICS(XbbRefTypeEnum.WORK_REPORT.getCode(),SaasButtonEnum.STATISTICS, ProPermissionAliasEnum.WORK_REPORT_STATISTIC.getAlias()),

    SUPPLIER_ADD(XbbRefTypeEnum.SUPPLIER.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.SUPPLIER_ADD.getAlias()),
    SUPPLIER_IMPORT(XbbRefTypeEnum.SUPPLIER.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.SUPPLIER_IMPORT.getAlias()),
    SUPPLIER_EXPORT(XbbRefTypeEnum.SUPPLIER.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.SUPPLIER_EXPORT.getAlias()),

    SUPPLIER_CONTACT_ADD(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.SUPPLIER_CONTACT_ADD.getAlias()),
    SUPPLIER_CONTACT_IMPORT(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.SUPPLIER_CONTACT_IMPORT.getAlias()),
    SUPPLIER_CONTACT_EXPORT(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.SUPPLIER_CONTACT_EXPORT.getAlias()),

    PURCHASE_ADD(XbbRefTypeEnum.PURCHASE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PURCHASE_ADD.getAlias()),
    PURCHASE_IMPORT(XbbRefTypeEnum.PURCHASE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PURCHASE_IMPORT.getAlias()),
    PURCHASE_EXPORT(XbbRefTypeEnum.PURCHASE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PURCHASE_EXPORT.getAlias()),
    PURCHASE_WAIT_PURCHASE(XbbRefTypeEnum.PURCHASE.getCode(),SaasButtonEnum.WAIT_PURCHASE, ProPermissionAliasEnum.CONTRACT_VIEW.getAlias()),

    RETURNED_PURCHASE_ADD(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.RETURN_PURCHASE_ADD.getAlias()),
    RETURNED_PURCHASE_IMPORT(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.RETURN_PURCHASE_IMPORT.getAlias()),
    RETURNED_PURCHASE_EXPORT(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.RETURN_PURCHASE_EXPORT.getAlias()),

    BOM_BILL_ADD(XbbRefTypeEnum.BOM_BILL.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.BOM_BILL_ADD.getAlias()),
    BOM_BILL_IMPORT(XbbRefTypeEnum.BOM_BILL.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.BOM_BILL_IMPORT.getAlias()),
    BOM_BILL_EXPORT(XbbRefTypeEnum.BOM_BILL.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.BOM_BILL_EXPORT.getAlias()),

    PRODUCTION_ORDER_ADD(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PRODUCTION_ORDER_ADD.getAlias()),
    PRODUCTION_ORDER_IMPORT(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PRODUCTION_ORDER_IMPORT.getAlias()),
    PRODUCTION_ORDER_EXPORT(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PRODUCTION_ORDER_EXPORT.getAlias()),
    PRODUCTION_ORDER_WAIT_PRODUCE(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasButtonEnum.WAIT_PRODUCE, ProPermissionAliasEnum.CONTRACT_VIEW.getAlias()),

    PAYMENT_ADD(XbbRefTypeEnum.PAYMENT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAYMENT_ADD.getAlias()),
    PAYMENT_IMPORT(XbbRefTypeEnum.PAYMENT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PAYMENT_IMPORT.getAlias()),
    PAYMENT_EXPORT(XbbRefTypeEnum.PAYMENT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAYMENT_EXPORT.getAlias()),
    
    PAY_PLAN_ADD(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAY_PLAN_ADD.getAlias()),
    PAY_PLAN_IMPORT(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PAY_PLAN_IMPORT.getAlias()),
    PAY_PLAN_EXPORT(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAY_PLAN_EXPORT.getAlias()),

    INVOICE_ADD(XbbRefTypeEnum.INVOICE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.INVOICE_ADD.getAlias()),
    INVOICE_IMPORT(XbbRefTypeEnum.INVOICE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.INVOICE_IMPORT.getAlias()),
    INVOICE_EXPORT(XbbRefTypeEnum.INVOICE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.INVOICE_EXPORT.getAlias()),

    PURCHASE_INVOICE_ADD(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasButtonEnum.ADD,ProPermissionAliasEnum.PURCHASE_INVOICE_ADD.getAlias()),
    PURCHASE_INVOICE_IMPORT(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasButtonEnum.IMPORT,ProPermissionAliasEnum.PURCHASE_INVOICE_IMPORT.getAlias()),
    PURCHASE_INVOICE_EXPORT(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasButtonEnum.EXPORT,ProPermissionAliasEnum.PURCHASE_INVOICE_EXPORT.getAlias()),


    ASSEMBLE_ADD(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.ASSEMBLE_ADD.getAlias()),
    ASSEMBLE_IMPORT(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.ASSEMBLE_IMPORT.getAlias()),
    ASSEMBLE_EXPORT(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.ASSEMBLE_EXPORT.getAlias()),

    PURCHASE_INSTOCK_ADD(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PURCHASE_INSTOCK_ADD.getAlias()),
    PURCHASE_INSTOCK_IMPORT(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PURCHASE_INSTOCK_IMPORT.getAlias()),
    PURCHASE_INSTOCK_EXPORT(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PURCHASE_INSTOCK_EXPORT.getAlias()),
    INSTOCK_WAIT_INSTOCK(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasButtonEnum.WAIT_INSTOCK, ProPermissionAliasEnum.PURCHASE_VIEW.getAlias()),
    REFUND_INSTOCK_ADD(XbbRefTypeEnum.REFUND_INSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.REFUND_INSTOCK_ADD.getAlias()),
    REFUND_INSTOCK_EXPORT(XbbRefTypeEnum.REFUND_INSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.REFUND_INSTOCK_EXPORT.getAlias()),
    OTHER_INSTOCK_ADD(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.INSTOCK_ADD.getAlias()),
    OTHER_INSTOCK_IMPORT(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.INSTOCK_IMPORT.getAlias()),
    OTHER_INSTOCK_EXPORT(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.INSTOCK_EXPORT.getAlias()),
    PRODUCTION_INSTOCK_ADD(XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PRODUCTION_INSTOCK_ADD.getAlias()),
    PRODUCTION_INSTOCK_EXPORT(XbbRefTypeEnum. PRODUCTION_INSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum. PRODUCTION_INSTOCK_EXPORT.getAlias()),
    RETURNED_MATERIEL_INSTOCK_ADD(XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.RETURNED_MATERIEL_INSTOCK_ADD.getAlias()),
    RETURNED_MATERIEL_INSTOCK_EXPORT(XbbRefTypeEnum. RETURNED_MATERIEL_INSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum. RETURNED_MATERIEL_INSTOCK_EXPORT.getAlias()),

    CONTRACT_OUTSTOCK_ADD(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_ADD.getAlias()),
    CONTRACT_OUTSTOCK_IMPORT(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_IMPORT.getAlias()),
    CONTRACT_OUTSTOCK_EXPORT(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_EXPORT.getAlias()),
    RETURNED_PURCHASE_OUTSTOCK_ADD(XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.RETURNED_PURCHASE_OUTSTOCK_ADD.getAlias()),
    RETURNED_PURCHASE_OUTSTOCK_EXPORT(XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.RETURNED_PURCHASE_OUTSTOCK_EXPORT.getAlias()),
    OTHER_OUTSTOCK_ADD(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.OUTSTOCK_ADD.getAlias()),
    OTHER_OUTSTOCK_IMPORT(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.OUTSTOCK_IMPORT.getAlias()),
    OTHER_OUTSTOCK_EXPORT(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.OUTSTOCK_EXPORT.getAlias()),
    PRODUCTION_MATERIEL_OUTSTOCK_ADD(XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PRODUCTION_MATERIEL_OUTSTOCK_ADD.getAlias()),
    PRODUCTION_MATERIEL_OUTSTOCK_EXPORT(XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PRODUCTION_MATERIEL_OUTSTOCK_EXPORT.getAlias()),
    WORK_ORDER_OUTSTOCK_ADD(XbbRefTypeEnum.WORK_ORDER_OUTSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.WORK_ORDER_OUTSTOCK_ADD.getAlias()),
    WORK_ORDER_OUTSTOCK_EXPORT(XbbRefTypeEnum.WORK_ORDER_OUTSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.WORK_ORDER_OUTSTOCK_EXPORT.getAlias()),
    OUTSTOCK_WAIT_OUTSTOCK(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasButtonEnum.WAIT_OUTSTOCK, ProPermissionAliasEnum.CONTRACT_VIEW.getAlias()),

    TRANSFER_ADD(XbbRefTypeEnum.TRANSFER.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.TRANSFER_ADD.getAlias()),
    TRANSFER_IMPORT(XbbRefTypeEnum.TRANSFER.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.TRANSFER_IMPORT.getAlias()),
    TRANSFER_EXPORT(XbbRefTypeEnum.TRANSFER.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.TRANSFER_EXPORT.getAlias()),

    INVENTORY_ADD(XbbRefTypeEnum.INVENTORY.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.INVENTORY_ADD.getAlias()),
    INVENTORY_IMPORT(XbbRefTypeEnum.INVENTORY.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.INVENTORY_IMPORT.getAlias()),
    INVENTORY_EXPORT(XbbRefTypeEnum.INVENTORY.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.INVENTORY_EXPORT.getAlias()),

    WAREHOUSE_ADD(XbbRefTypeEnum.WAREHOUSE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.WAREHOUSE_ADD.getAlias()),

    STOCK_SEARCH_EXPORT(XbbRefTypeEnum.STOCK_SEARCH.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.STOCK_SEARCH_EXPORT.getAlias()),

    STOCK_FLOW_BILL_EXPORT(XbbRefTypeEnum.STOCK_FLOW_BILL.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.STOCK_FLOW_BILL_EXPORT.getAlias()),
    STOCK_STANDING_BOOK_EXPORT(XbbRefTypeEnum.STOCK_STANDING_BOOK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.STOCK_STANDING_BOOK_EXPORT.getAlias()),

    PRODUCT_ADD(XbbRefTypeEnum.PRODUCT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PRODUCT_ADD.getAlias()),
    PRODUCT_IMPORT(XbbRefTypeEnum.PRODUCT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PRODUCT_IMPORT.getAlias()),
    PRODUCT_EXPORT(XbbRefTypeEnum.PRODUCT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PRODUCT_EXPORT.getAlias()),
    PRODUCT_CLASSIFY(XbbRefTypeEnum.PRODUCT.getCode(),SaasButtonEnum.CLASSIFY, ProPermissionAliasEnum.PRODUCT_CATEGORY_UPDATE.getAlias()),

    SUPPLIER_COMMUNICATE_ADD(XbbRefTypeEnum.SUPPLIER_COMMUNICATE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.SUPPLIER_COMMUNICATE_ADD.getAlias()),
    SUPPLIER_COMMUNICATE_IMPORT(XbbRefTypeEnum.SUPPLIER_COMMUNICATE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.SUPPLIER_COMMUNICATE_IMPORT.getAlias()),
    SUPPLIER_COMMUNICATE_EXPORT(XbbRefTypeEnum.SUPPLIER_COMMUNICATE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.SUPPLIER_COMMUNICATE_EXPORT.getAlias()),

    REFUND_ADD(XbbRefTypeEnum.REFUND.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.REFUND_ADD.getAlias()),
    REFUND_IMPORT(XbbRefTypeEnum.REFUND.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.REFUND_IMPORT.getAlias()),
    REFUND_EXPORT(XbbRefTypeEnum.REFUND.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.REFUND_EXPORT.getAlias()),

    WROK_ORDER_ADD(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.WORK_ORDER_ADD.getAlias()),
    WROK_ORDER_EXPORT(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.WORK_ORDER_EXPORT.getAlias()),
    WROK_ORDER_WAIT_ROB(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasButtonEnum.WAIT_ROB, ProPermissionAliasEnum.WORK_ORDER_VIEW.getAlias()),

    SIGNIN_EXPORT(XbbRefTypeEnum.SIGNIN.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.SIGN_IN_EXPORT.getAlias()),
    SIGNIN_STATISTIC(XbbRefTypeEnum.SIGNIN.getCode(),SaasButtonEnum.SIGNIN_STATISTICS, ProPermissionAliasEnum.SIGN_IN_STATISTIC.getAlias()),

    QUOTATION_ADD(XbbRefTypeEnum.QUOTATION.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.QUOTATION_ADD.getAlias()),
    QUOTATION_IMPORT(XbbRefTypeEnum.QUOTATION.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.QUOTATION_IMPORT.getAlias()),
    QUOTATION_EXPORT(XbbRefTypeEnum.QUOTATION.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.QUOTATION_EXPORT.getAlias()),

    CREDIT_LIMIT_ADD(XbbRefTypeEnum.CREDIT_LIMIT.getCode(), SaasButtonEnum.ADD, ProPermissionAliasEnum.CREDIT_LIMIT_ADD.getAlias()),
    CREDIT_LIMIT_IMPORT(XbbRefTypeEnum.CREDIT_LIMIT.getCode(), SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CREDIT_LIMIT_IMPORT.getAlias()),
    CREDIT_LIMIT_EXPORT(XbbRefTypeEnum.CREDIT_LIMIT.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CREDIT_LIMIT_EXPORT.getAlias()),
    CREDIT_FIXED_LIMIT_ADD(XbbRefTypeEnum.CREDIT_FIXED_LIMIT.getCode(), SaasButtonEnum.ADD, ProPermissionAliasEnum.CREDIT_FIXED_LIMIT_ADD.getAlias()),
    CREDIT_FIXED_LIMIT_IMPORT(XbbRefTypeEnum.CREDIT_FIXED_LIMIT.getCode(), SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CREDIT_FIXED_LIMIT_IMPORT.getAlias()),
    CREDIT_FIXED_LIMIT_EXPORT(XbbRefTypeEnum.CREDIT_FIXED_LIMIT.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CREDIT_FIXED_LIMIT_EXPORT.getAlias()),
    CREDIT_TEMPORARY_LIMIT_ADD(XbbRefTypeEnum.CREDIT_TEMPORARY_LIMIT.getCode(), SaasButtonEnum.ADD, ProPermissionAliasEnum.CREDIT_TEMPORARY_LIMIT_ADD.getAlias()),
    CREDIT_TEMPORARY_LIMIT_IMPORT(XbbRefTypeEnum.CREDIT_TEMPORARY_LIMIT.getCode(), SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CREDIT_TEMPORARY_LIMIT_IMPORT.getAlias()),
    CREDIT_TEMPORARY_LIMIT_EXPORT(XbbRefTypeEnum.CREDIT_TEMPORARY_LIMIT.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CREDIT_TEMPORARY_LIMIT_EXPORT.getAlias()),

    PREPAYMENT_BALANCE_ADD(XbbRefTypeEnum.PREPAYMENT_BALANCE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAYMENT_SHEET_ADD.getAlias()),
    PREPAYMENT_BALANCE_IMPORT(XbbRefTypeEnum.PREPAYMENT_BALANCE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAYMENT_SHEET_EXPORT.getAlias()),

    PAYMENT_SHEET_ADD(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAYMENT_SHEET_ADD.getAlias()),
    PAYMENT_SHEET_IMPORT(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PAYMENT_SHEET_IMPORT.getAlias()),
    PAYMENT_SHEET_EXPORT(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAYMENT_SHEET_EXPORT.getAlias()),

    PAY_SHEET_ADD(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAY_SHEET_ADD.getAlias()),
    PAY_SHEET_IMPORT(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.PAY_SHEET_IMPORT.getAlias()),
    PAY_SHEET_EXPORT(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAY_SHEET_EXPORT.getAlias()),

    PREPAY_BALANCE_ADD(XbbRefTypeEnum.PREPAY_BALANCE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAY_SHEET_ADD.getAlias()),
    PREPAY_BALANCE_IMPORT(XbbRefTypeEnum.PREPAY_BALANCE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAY_SHEET_EXPORT.getAlias()),

    PAYMENT_TASK_ADD(XbbRefTypeEnum.PAYMENT_TASK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PAYMENT_TASK_ADD.getAlias()),
    PAYMENT_TASK_EXPORT(XbbRefTypeEnum.PAYMENT_TASK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PAYMENT_TASK_EXPORT.getAlias()),

    //客户对账单 - 打印设置，读取系统的 打印模板 权限
    CUSTOMER_STATEMENT_SET_PRINT(XbbRefTypeEnum.CUSTOMER_STATEMENT.getCode(), SaasButtonEnum.SET_PRINT, ProPermissionAliasEnum.PRINT_TEMPLATE.getAlias()),
    //客户对账单 - 列表设置
    CUSTOMER_STATEMENT_SET_LIST(XbbRefTypeEnum.CUSTOMER_STATEMENT.getCode(), SaasButtonEnum.SET_LIST, ProPermissionAliasEnum.CUSTOMER_STATEMENT_VIEW.getAlias()),

    ONLINE_PAYMENT_FLOW_EXPORT(XbbRefTypeEnum.ONLINE_PAYMENT_FLOW.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.ONLINE_PAYMENT_FLOW_EXPORT.getAlias()),

    BATCH_FLOW_BILL_EXPORT(XbbRefTypeEnum.BATCH_FLOW_BILL.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.BATCH_FLOW_BILL_EXPORT.getAlias()),

    SEQ_SEARCH_EXPORT(XbbRefTypeEnum.SEQ_SEARCH.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.SEQ_SEARCH_EXPORT.getAlias()),

    MARKET_ACTIVITY_ADD(XbbRefTypeEnum.MARKET_ACTIVITY.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.MARKET_ACTIVITY_ADD.getAlias()),
    MARKET_ACTIVITY_IMPORT(XbbRefTypeEnum.MARKET_ACTIVITY.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.MARKET_ACTIVITY_IMPORT.getAlias()),
    MARKET_ACTIVITY_EXPORT(XbbRefTypeEnum.MARKET_ACTIVITY.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.MARKET_ACTIVITY_EXPORT.getAlias()),

    CLUE_ADD(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CLUE_ADD.getAlias()),
    CLUE_IMPORT(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CLUE_IMPORT.getAlias()),
    CLUE_EXPORT(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CLUE_EXPORT.getAlias()),
    CLUE_CHECK_REPEAT(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CLUE_DUPLICATE.getAlias()),

    CLUE_PUBLIC_ADD(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CLUE_ADD.getAlias()),
    CLUE_PUBLIC_IMPORT(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CLUE_IMPORT.getAlias()),
    CLUE_PUBLIC_EXPORT(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CLUE_EXPORT.getAlias()),
    CLUE_PUBLIC_CHECK_REPEAT(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasButtonEnum.CHECK_REPEAT, ProPermissionAliasEnum.CLUE_DUPLICATE.getAlias()),

    CLUE_RECYCLE_EXPORT(XbbRefTypeEnum.CLUE_RECYCLE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CLUE_EXPORT.getAlias()),

    CLUE_DUPLICATE_ADD(XbbRefTypeEnum.CLUE_DUPLICATE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CLUE_ADD.getAlias()),



    MARKETING_ACTIVITY_ADD(XbbRefTypeEnum.MARKETING_ACTIVITY_MANAGEMENT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.MARKETING_ACTIVITY_ADD.getAlias()),
    MARKETING_ACTIVITY_EXPORT(XbbRefTypeEnum.MARKETING_ACTIVITY_MANAGEMENT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.MARKETING_ACTIVITY_EXPORT.getAlias()),
    MARKETING_ACTIVITY_VIEW_RECORD(XbbRefTypeEnum.MARKETING_ACTIVITY_MANAGEMENT.getCode(),SaasButtonEnum.VIEW_RECORD, ProPermissionAliasEnum.MARKETING_ACTIVITY_VIEW_RECORD.getAlias()),

    PROMOTION_ACTIVITY_ADD(XbbRefTypeEnum.PROMOTION_ACTIVITY_MANAGEMENT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.PROMOTION_ACTIVITY_ADD.getAlias()),
    PROMOTION_ACTIVITY_EXPORT(XbbRefTypeEnum.PROMOTION_ACTIVITY_MANAGEMENT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PROMOTION_ACTIVITY_EXPORT.getAlias()),


    SALE_BUNDLE_ADD(XbbRefTypeEnum.SALE_BUNDLE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.SALE_BUNALE_ADD.getAlias()),
    SALE_BUNDLE_SYN(XbbRefTypeEnum.SALE_BUNDLE.getCode(),SaasButtonEnum.SYNCHRONIZATION, ProPermissionAliasEnum.SALE_BUNDLE_SYN.getAlias()),
    /**
     * 经销商上部按钮
     */
    DISTRIBUTOR_ADD(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.DISTRIBUTOR_ADD.getAlias()),
    DISTRIBUTOR_IMPORT(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.DISTRIBUTOR_IMPORT.getAlias()),
    DISTRIBUTOR_EXPORT(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.DISTRIBUTOR_EXPORT.getAlias()),
    DISTRIBUTOR_AREA_SETTING(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasButtonEnum.AREA_SETTING, ProPermissionAliasEnum.DISTRIBUTOR_AREA_SETTING.getAlias()),
    /**
     * 账号上部按钮
     */
    DISTRIBUTOR_ACCOUNT_ADD(XbbRefTypeEnum.DISTRIBUTOR_ACCOUNT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.DISTRIBUTOR_ACCOUNT_ADD.getAlias()),
    DISTRIBUTOR_ACCOUNT_IMPORT(XbbRefTypeEnum.DISTRIBUTOR_ACCOUNT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.DISTRIBUTOR_ACCOUNT_IMPORT.getAlias()),
    DISTRIBUTOR_ACCOUNT_EXPORT(XbbRefTypeEnum.DISTRIBUTOR_ACCOUNT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.DISTRIBUTOR_ACCOUNT_EXPORT.getAlias()),
    /**
     * 联系人上部按钮
     */
    DISTRIBUTOR_CONTACT_ADD(XbbRefTypeEnum.DISTRIBUTOR_CONTACT.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.DISTRIBUTOR_CONTACT_ADD.getAlias()),
    DISTRIBUTOR_CONTACT_IMPORT(XbbRefTypeEnum.DISTRIBUTOR_CONTACT.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.DISTRIBUTOR_CONTACT_IMPORT.getAlias()),
    DISTRIBUTOR_CONTACT_EXPORT(XbbRefTypeEnum.DISTRIBUTOR_CONTACT.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.DISTRIBUTOR_CONTACT_EXPORT.getAlias()),
    /**
     * 跟进记录上部按钮
     */
    DISTRIBUTOR_COMMUNICATE_ADD(XbbRefTypeEnum.DISTRIBUTOR_COMMUNICATE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.DISTRIBUTOR_COMMUNICATE_ADD.getAlias()),
    DISTRIBUTOR_COMMUNICATE_IMPORT(XbbRefTypeEnum.DISTRIBUTOR_COMMUNICATE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.DISTRIBUTOR_COMMUNICATE_IMPORT.getAlias()),
    DISTRIBUTOR_COMMUNICATE_EXPORT(XbbRefTypeEnum.DISTRIBUTOR_COMMUNICATE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.DISTRIBUTOR_COMMUNICATE_EXPORT.getAlias()),

    /**
     * 订货单上部按钮
     */
    ORDER_ADD(XbbRefTypeEnum.ORDER.getCode(),SaasButtonEnum.ADD,ProPermissionAliasEnum.ORDER_ADD.getAlias()),
    ORDER_IMPORT(XbbRefTypeEnum.ORDER.getCode(),SaasButtonEnum.IMPORT,ProPermissionAliasEnum.ORDER_IMPORT.getAlias()),
    ORDER_EXPORT(XbbRefTypeEnum.ORDER.getCode(),SaasButtonEnum.EXPORT,ProPermissionAliasEnum.ORDER_EXPORT.getAlias()),
    /**
     * 退货单上部按钮
     */
    RETURN_ADD(XbbRefTypeEnum.RETURN.getCode(),SaasButtonEnum.ADD,ProPermissionAliasEnum.RETURN_ADD.getAlias()),
    RETURN_EXPORT(XbbRefTypeEnum.RETURN.getCode(),SaasButtonEnum.EXPORT,ProPermissionAliasEnum.RETURN_EXPORT.getAlias()),

    /**
     * 价目表上部按钮
     */
    PRODUCT_PRICE(XbbRefTypeEnum.PRICE_SET_PRODUCT.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PRICE_PRODUCT_EXPORT.getAlias()),

    ORDER_OUTSTOCK_ADD(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_ADD.getAlias()),
    ORDER_OUTSTOCK_IMPORT(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_IMPORT.getAlias()),
    ORDER_OUTSTOCK_EXPORT(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_EXPORT.getAlias()),
    OUTSTOCK_WAIT_OUTSTOCK_DISTRIBUTOR(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasButtonEnum.WAIT_OUTSTOCK, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_VIEW.getAlias()),
    DELIVERY_ANALYSIS(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasButtonEnum.DELIVERY_ANALYSIS, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_VIEW.getAlias()),

    //其他收入单
    OTHER_INCOME_ADD(XbbRefTypeEnum.OTHER_INCOME.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.OTHER_INCOME_ADD.getAlias()),
    OTHER_INCOME_IMPORT(XbbRefTypeEnum.OTHER_INCOME.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.OTHER_INCOME_IMPORT.getAlias()),
    OTHER_INCOME_EXPORT(XbbRefTypeEnum.OTHER_INCOME.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.OTHER_INCOME_EXPORT.getAlias()),
    //其他支出单
    OTHER_EXPENSE_ADD(XbbRefTypeEnum.OTHER_EXPENSE.getCode(),SaasButtonEnum.ADD, ProPermissionAliasEnum.OTHER_EXPENSE_ADD.getAlias()),
    OTHER_EXPENSE_IMPORT(XbbRefTypeEnum.OTHER_EXPENSE.getCode(),SaasButtonEnum.IMPORT, ProPermissionAliasEnum.OTHER_EXPENSE_IMPORT.getAlias()),
    OTHER_EXPENSE_EXPORT(XbbRefTypeEnum.OTHER_EXPENSE.getCode(),SaasButtonEnum.EXPORT, ProPermissionAliasEnum.OTHER_EXPENSE_EXPORT.getAlias()),
    //资金调拨单
    FUND_TRANSFER_ADD(XbbRefTypeEnum.FUND_TRANSFER.getCode(), SaasButtonEnum.ADD, ProPermissionAliasEnum.FUND_TRANSFER_ADD.getAlias()),
    FUND_TRANSFER_IMPORT(XbbRefTypeEnum.FUND_TRANSFER.getCode(), SaasButtonEnum.IMPORT, ProPermissionAliasEnum.FUND_TRANSFER_IMPORT.getAlias()),
    FUND_TRANSFER_EXPORT(XbbRefTypeEnum.FUND_TRANSFER.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.FUND_TRANSFER_EXPORT.getAlias()),
    //成本调整单
    COST_ADJUST_ADD(XbbRefTypeEnum.COST_ADJUST.getCode(), SaasButtonEnum.ADD, ProPermissionAliasEnum.COST_ADJUST_ADD.getAlias()),
    COST_ADJUST_IMPORT(XbbRefTypeEnum.COST_ADJUST.getCode(), SaasButtonEnum.IMPORT, ProPermissionAliasEnum.COST_ADJUST_IMPORT.getAlias()),
    COST_ADJUST_EXPORT(XbbRefTypeEnum.COST_ADJUST.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.COST_ADJUST_EXPORT.getAlias()),

    //待出库
    OUTSTOCK_WAIT_EXPORT(XbbRefTypeEnum.WAIT_OUTSTOCK.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PENDING_OUTSTOCK_EXPORT.getAlias()),
    //待入库
    INSTOCK_WAIT_EXPORT(XbbRefTypeEnum.WAIT_INSTOCK_PURCHASE.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.PENDING_INSTOCK_EXPORT.getAlias()),
    WAIR_PURCHASE_EXPORT(XbbRefTypeEnum.WAIT_PURCHASE.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.ORDER_ON_PIN_EXPORT.getAlias()),
    SMART_REPLENISHMENT_EXPORT(XbbRefTypeEnum.SMART_REPLENISHMENT.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.SMART_REPLENISHMENT_EXPORT.getAlias()),

    //知识库
    KNOWLEDGE_ADD(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(), SaasButtonEnum.ADD, null),
    KNOWLEDGE_IMPORT(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(), SaasButtonEnum.IMPORT, null),
    KNOWLEDGE_EXPORT(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(), SaasButtonEnum.EXPORT, null),


    //回执单
    RECEIPT_ORDER_EXPORT(XbbRefTypeEnum.RECEIPT_ORDER.getCode(), SaasButtonEnum.EXPORT, ProPermissionAliasEnum.RECEIPT_ORDER_EXPORT.getAlias()),

    /**
     * 竞争对手
     */
    COMPETITOR_ADD(XbbRefTypeEnum.COMPETITOR.getCode(),SaasButtonEnum.ADD,ProPermissionAliasEnum.COMPETITOR_ADD.getAlias()),

    COMPETITOR_IMPORT(XbbRefTypeEnum.COMPETITOR.getCode(),SaasButtonEnum.IMPORT,ProPermissionAliasEnum.COMPETITOR_IMPORT.getAlias()),

    COMPETITOR_EXPORT(XbbRefTypeEnum.COMPETITOR.getCode(),SaasButtonEnum.EXPORT,ProPermissionAliasEnum.COMPETITOR_EXPORT.getAlias()),



    //合同比对
    CONTRACT_COMPARE_ADD(XbbRefTypeEnum.CONTRACT_COMPARE_RESULT.getCode(), SaasButtonEnum.ADD, ProPermissionAliasEnum.CONTRACT_COMPARE_RESULT_ADD.getAlias()),
    ;


    private Integer businessType;
    private SaasButtonEnum anEnum;
    private String proPermissionAlias;

    ListTopButtonEnum(Integer businessType, SaasButtonEnum anEnum, String proPermissionAliasEnum) {
        this.businessType = businessType;
        this.anEnum = anEnum;
        this.proPermissionAlias = proPermissionAliasEnum;
    }

    public static List<ListTopButtonEnum> getByBusinessType(Integer businessType) {
        List<ListTopButtonEnum> list = new ArrayList<>();
        for (ListTopButtonEnum buttonEnum : ListTopButtonEnum.values()) {
            if (Objects.equals(businessType, buttonEnum.getBusinessType())) {
                list.add(buttonEnum);
            }
        }
        return list;
    }
}
